home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / sound / carbonsndplaydb / carbonsndplaydb readme next >
Encoding:
Text File  |  2000-06-23  |  1.1 KB  |  21 lines

  1. MySndPlayDB was written to be a Carbon compatible replacement for SndPlayDoubleBuffer.  It will,
  2. of course, also work in a non-Carbon environment, so even non-Carbon applications might want to
  3. take a look at it.
  4.  
  5. A replacement for SndPlayDoubleBuffer is not as easy as I had hoped.  It requires that I walk
  6. the sound channel's data, which should be OK since you can allocate the sound channel memor
  7. yourself.  There are no accessors to get at the sound channel structure, and it's not an opaque
  8. type.  Engineering has said that this should be OK.
  9.  
  10. This also requires that I have a wrapper around SndDoImmediate for any quietCmd or flushCmd
  11. that is issued so that I can clean up memory allocated per channel.  To clean up this memory
  12. there is a notification procedure that disposes of the per channel allocated memory.  For this
  13. to run, you must call WaitNextEvent, etc., so that the Notification Manager has time to run.
  14. This should not effect too many applications, but a game, perhaps, might need to take this into
  15. account.
  16.  
  17. The code is heavily commented, at least I think so, so it should be pretty easy to follow the
  18. code and figure out what's going on.
  19.  
  20. Good luck.
  21.